<template>
  <el-dialog :title="title" :visible.sync="dialogVisible">
    <div v-if="dialogVisible">
      <slot></slot>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button @click="handleCancel">取 消</el-button>
      <el-button type="primary" @click="handleConfirm">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "cDialog",
  props: {
    title: {
      type: String,
      default: "编辑"
    },
  },
  data() {
    return {
      dialogVisible: true,
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      tableData: null
    }
  },
  methods: {
    handleCancel(){

    },
    handleConfirm(){

    }
  }
}
</script>

<style scoped>

</style>
